Obstacle avoidance walking method of self-moving robot

ABSTRACT

An obstacle avoidance walking method of a self-moving robot includes storing a coordinate of a first obstacle point and a coordinate of a second obstacle point. The coordinate of the first obstacle point and the coordinate of the second obstacle point are formed by detecting an obstacle by the self-moving robot when walking along a first direction. The method further includes performing a preset shuttle walking according to the coordinate of the first obstacle point and the coordinate of the second obstacle point. The method accurately determines obstacle position and provides a concise walking path, and greatly improves the working efficiency of the self-moving robot.

FIELD OF THE INVENTION

The present invention relates to an obstacle-avoidance walking method of a self-moving robot, which belongs to the technical field of the manufacture of small household electric appliances.

BACKGROUND ART

The self-moving robot has been widely used for its convenient operation and freedom of movement, and has a variety of applications including window wiping, floor sweeping, air purification and so on. The self-moving robot sometimes runs into obstacle during its operation and can accurately and effectively avoid the obstacle during the self-moving walking process, hereby greatly improving the working efficiency. As an example of the glass-wiping robot, the prior art CN02137830.4 provides a method for identifying cleanable area and obstacle area for an automatic dust collector. FIG. 1 is a schematic diagram of the obstacle-avoidance walking of the existing self-moving robot. Referring to FIG. 1, if the movements of the self-moving robot are classified into movements in the horizontal direction (X axis) and in the vertical direction (Y axis), FIG. 1 is a schematic diagram of the traversing in the X-axis direction and obstacle-avoidance walking in the Y-axis direction of the self-moving robot. As shown in FIG. 1, the self-moving robot walks along the respective reciprocating paths of Y1, Y2 and Y3. When the self-moving robot runs into the obstacle A4, it bypasses the obstacle and walks in a reciprocating manner in the vertical direction, wherein the bypassing action is performed every time the self-moving robot runs into the obstacle A4 in the vertical direction. As a result of the walking mode of the existing self-moving robot, the walking on the path at the right side of the obstacle A4 is repeated for many times, which greatly prolongs the walking time and seriously impairs the working efficiency of the robot.

SUMMARY OF THE INVENTION

In view of the above deficiencies in the prior art, the present invention provides an obstacle-avoidance walking method of a self-moving robot, which accurately determines obstacle position, provides a concise walking path, and greatly improves the working efficiency of the self-moving robot.

The above problems are solved by the following technical solutions according to the present invention.

An obstacle-avoidance walking method of a self-moving robot is provided, in a walking area of the self-moving robot, a rectangular plane coordinate system is established with the horizontal direction as the X axis and the vertical direction as the Y axis, characterized in that, the method specifically comprises the following steps:

step 100: the self-moving robot walks along the Y axis, when the self-moving robot walks forwardly along the Y axis and detects obstacle, it sets an obstacle point at the current position as an upside obstacle point and stores valid upside obstacle points as upside recorded points; when the self-moving robot walks reversely along the Y axis and detects obstacle, it sets an obstacle point at the current position as a downside obstacle point and stores valid downside obstacle points as downside recorded points;

step 200: according to storage sequence, the upside recorded points are classified into a current upside recorded point and previous upside recorded points, and the downside recorded points are classified into a current downside recorded point and previous downside recorded points;

step 300: if the current obstacle point is the upside obstacle point, it is determined whether there is before the current upside obstacle point a previous upside recorded point the Y-axis coordinate of which is less than that of the current upside obstacle point; and if the current obstacle point is the downside obstacle point, it is determined whether there is before the current downside obstacle point a previous downside recorded point, the Y-axis coordinate of which is larger than that of the current downside obstacle point;

step 400: if the determination result is positive, the previous upside recorded point or the previous downside recorded point is a turning point, the self-moving robot walks along the X axis from the current obstacle point toward the turning point to the X-axis coordinate of the turning point, deletes the coordinate of the turning point, and returns to the step 100 after completing traversal walking in an area between the turning point and the current obstacle point; and if the determination result is negative, the self-moving robot moves for a displacement M1 along the X axis;

step 500: the self-moving robot walks along a direction opposite to the former Y-axis walking direction, and returns to the step 100;

step 600: the step 100 to the step 500 are repeated until traversal walking in the walking area is completed.

The upside obstacle points and the downside obstacle points can be stored partially or wholly. Specifically, when the obstacle points are stored partially, the step 100 specifically further comprises:

if the Y-axis coordinate of the current upside obstacle point is different from that of each of the previous upside recorded points, the current upside obstacle point is the valid upside obstacle point; and if the Y-axis coordinate of the current downside obstacle point is different from that of each of the previous downside recorded points, the current downside obstacle point is the valid downside obstacle point.

When the obstacle points are stored wholly, the step 100 specifically further comprises: each of the upside obstacle points is the valid upside obstacle point; and each of the downside obstacle points is the valid downside obstacle point.

The step 400 specifically further comprises: if the determination result is positive, difference values of the X-axis coordinates of all of the upside recorded points or the downside recorded points that satisfy the determination condition from the X-axis coordinate of the current obstacle point are compared, and the upside recorded point or the downside recorded point having the largest difference value is taken as the turning point.

In order to reduce storage amount, the step 400 specifically further comprises: if the determination result is positive, the coordinates of all of the upside recorded points or the downside recorded points that satisfy the determination condition are deleted.

The step 400 specifically further comprises: if the self-moving robot detects obstacle again before reaching the X axis coordinate of the turning point, the coordinate of the turning point is deleted and the method proceeds to the step 500.

In the step 400, the self-moving robot performs traversal walking in the area between the turning point and the current obstacle point in the same walking mode as it completes traversal walking in the walking area in the step 600.

A step 410 is further comprised after the step 400: it is determined whether the self-moving robot can walk along the former Y-axis walking direction, if the determination result is positive, the self-moving robot walks along the former Y-axis walking direction and returns to the step 100; and if the determination result is negative, the method proceeds to the step 500.

The determining of whether the self-moving robot can walk along the former Y-axis walking direction in the step 400 specifically comprises:

the self-moving robot firstly walks along the former Y-axis walking direction, if the self-moving robot does not detect obstacle after walking for a certain distance, it is determined that the self-moving robot can walk along the former Y-axis walking direction; otherwise, it is determined that the self-moving robot cannot walk along the former Y-axis walking direction.

A side-looking sensor is provided on a side the self-moving robot, and the determining of whether the self-moving robot can walk along the former Y-axis walking direction in the step 400 specifically comprising: according to a feedback signal of the side-looking sensor, the self-moving robot determines whether it can walk along the former Y-axis walking direction.

The present invention further provides obstacle-avoidance walking method of a self-moving robot, in a walking area of the self-moving robot, a rectangular plane coordinate system is established with the horizontal direction as the X axis and the vertical direction as the Y axis, and walking along the direction of the X axis or the Y axis is a forward walking;

the method specifically comprises the following steps:

step 1000: the self-moving robot walks along the Y axis, when the self-moving robot detects obstacle, the current position is set as an obstacle point and the coordinate of the current position is stored as a recorded point;

step 2000: it is determined whether a recorded point, the Y-axis coordinate of which is within a numerical interval defined by the Y-axis coordinates of the current obstacle point and the previous obstacle point, has been stored previously;

step 3000: if the determination result is positive, the recorded point is a turning point, and the self-moving robot walks along the X axis from the current obstacle point toward the turning point to the X-axis coordinate of the turning point, deletes the coordinate of the turning point, and the method returns to the step 1000 after performing traversal walking in an area between the turning point and the current obstacle point; and if the determination result is negative, the self-moving robot shifts for a displacement M1 along the X axis;

step 4000: the self-moving robot walks along a reverse direction opposite to the former Y-axis walking direction, and the method returns to the step 1000;

step 5000: the step 1000 to the step 4000 are repeated until Y-axis traversal walking in the walking area is completed.

In conclusion, the advantage of the present invention lies in that when the self-moving robot runs into obstacle during its walking process, it can perform an one-off avoidance action with respect to obstacle by the coordinate determination so as to complete the working in each area between the periphery of the obstacle and the boundaries of the walking area; whereas in the prior art, the self-moving robot has to walk around the obstacle while avoiding obstacle for many times during its working process. Thus, the present invention accurately determines obstacle position and provides a concise walking path, and thus greatly improves the working efficiency of the self-moving robot.

Hereinafter, the technical solutions of the present invention will be described in detailed in combination with the drawings and the specific embodiments.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic diagram of an obstacle-avoidance walking of the existing self-moving robot.

FIG. 2 is a schematic diagram of an obstacle-avoidance walking of a self-moving robot according to the first embodiment of the present invention.

FIG. 3 is a schematic diagram of the obstacle-avoidance walking of a self-moving robot according to the second embodiment of the present invention.

FIG. 4 is a schematic diagram of an obstacle-avoidance walking of a self-moving robot according to the third embodiment of the present invention.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS The First Embodiment

FIG. 2 is a schematic diagram of an obstacle-avoidance walking of a self-moving robot according to the first embodiment of the present invention. As shown in FIG. 2, the specific obstacle-avoidance walking process according to the present invention is described as follow. Firstly, in the walking area of the self-moving robot, a rectangular plane coordinate system is established with the horizontal direction as the X axis and the vertical direction as the Y axis, and the walking along the direction of the X axis or Y axis is a forward walking, and otherwise, a reverse walking.

Referring to FIG. 2, in the present embodiment, the obstacle-avoidance walking process according to the present invention is described merely by the example in which the self-moving robot walks along the Y axis. To be specific, in the walking area 100, the self-moving robot walks upward forwardly along the Y axis from the point O at the lower left corner of the walking area, and detects obstacle, which may be a frame or a frameless suspending edge and so on of the walking area 100, when it moves and reaches the point P on the upper edge of the walking area 100. At this time, the coordinate of this point is stored as (X_(O), Y_(P)). The self-moving robot walks downward reversely along the Y axis after shifting for a displacement M1 along the direction of the X axis. The self-moving robot detects obstacle when it moves and reaches the point Q on the lower edge of the walking area 100. At this time, the coordinate of this point is stored as (X_(Q), Y_(Q)). The self-moving robot performs an automatic detection for determining whether there is a recorded point, the Y-axis coordinate of which is within a Y-axis coordinate interval (Y_(Q), Y_(P)) defined by the current coordinate point Q and the previous coordinate point P that have been stored. As shown in FIG. 2, obviously, there is no such recorded point. Accordingly, the self-moving robot walks upward forwardly along the Y axis again after shifting from the point Q for the displacement M1 along the direction of the X axis. In this way, the self-moving robot walks along a reciprocating “

”-shaped path, and meanwhile stores the coordinate of each point at which obstacle is detected and determines whether there is a recorded point having a Y-axis coordinate within the Y-axis coordinate interval defined by the current coordinate point and the previous coordinate point that have been stored. The self-moving robot detects obstacle when it moves and reaches the point A, and stores the coordinate of this point as (X_(A), Y_(A)). Since the coordinate of the obstacle point A′ previous to the point A is (X_(A), Y_(Q)), and there is no recorded obstacle point having a Y-axis coordinate between Y_(A) and Y_(Q), the self-moving robot walks downward along the Y axis after shifting from the point A for the displacement M1 along the direction of the X axis. In this way, the self-moving robot walks along a reciprocating “

”-shaped path, and meanwhile stores each coordinate point at which obstacle is detected. Then, the self-moving robot moves and reaches the point C, which has the coordinate (X_(C), Y_(P)), and the obstacle-detected point previous to which is the point F having the coordinate (X_(B), Y_(Q)). Obviously, the Y-axis coordinate of each of the points A, B1 and B2 among the recorded points that have been stored is between the Y-axis coordinates of the point C and the point F, and the X-axis coordinate X_(A) of the point A is less than the X-axis coordinate X_(B) of the point B. In this situation, the point A is a turning point. The self-moving robot walks reversely along the X axis from the point C to the point D which has the same X-axis coordinate as the point A. At this time, in order to prevent the self-moving robot from returning again and repeatedly walking, the points A and B and the recorded points that have the same Y-axis coordinate as the points A and B are deleted. Traversal walking in the area between the point D and the point C is started, during which even when the self-moving robot detects obstacle, it does not store any coordinate point until it moves and reaches the X-axis coordinate of the point C again. Hereafter, the self-moving robot resumes storing the coordinate points at which obstacle is detected, and thus returns to the routine reciprocating “

”-shaped walking mode. In the present embodiment, the walking mode applied during traversal walking process in the obstacle area between the point D and the point C is also the reciprocating “

”-shaped walking mode. It should be noted that the walking mode here is not limited to the reciprocating “

”-shaped walking mode, and the use of other walking modes such as “

”-shaped walking mode can also achieve the same technical effect. As shown in FIG. 2, the walking path of the self-moving robot is: O→P→Q→A→→→B→F→G→C→D→N→E→C→G.

That is to say, in the first embodiment, the coordinates of the obstacle points are stored as the recorded points. During the movement of the self-moving robot, it is determined whether there is a recorded point, the Y-axis coordinate of which is within the Y-axis coordinate interval defined by the Y-axis coordinates of the current obstacle point and the previous obstacle point. If the determination result is positive, this recorded point is the turning point. The self-moving robot moves to the turning point from the current obstacle point. If there are multiple recorded points that satisfy the above determination condition, differences of the X-axis coordinates of all recorded points that satisfy the determination condition from the X-axis coordinate of the current obstacle point are compared, and the recorded point having the largest difference is the turning point. If the determination result is negative, the self-moving robot moves reversely along the Y axis after shifting from the current obstacle point for the displacement M1 along the X axis, and returns to the routine reciprocating “

”-shaped walking mode.

In conclusion, in the obstacle-avoidance walking method of the self-moving robot according to the present invention, in the walking area of the self-moving robot, a rectangular plane coordinate system is established with the horizontal direction as the X axis and the vertical direction as the Y axis, and the walking along the direction of the X axis or Y axis is a forward walking.

The method specifically comprises the following steps:

step 1000: the self-moving robot walks along the Y axis, when the self-moving robot detects obstacle, the current position is set as an obstacle point and the coordinate of the current position is stored as a recorded point;

step 2000: it is determined whether a recorded point, the Y-axis coordinate of which is within a numerical interval defined by the Y-axis coordinates of the current obstacle point and the previous obstacle point, has been stored previously;

step 3000: if the determination result is positive, the recorded point is a turning point, and the self-moving robot walks along the X axis from the current obstacle point toward the turning point to the X-axis coordinate of the turning point, deletes the coordinate of the turning point, and the method returns to the step 1000 after performing traversal walking in an area between the turning point and the current obstacle point; and if the determination result is negative, the self-moving robot shifts for a displacement M1 along the X axis;

step 4000: the self-moving robot walks along a reverse direction opposite to the former Y-axis walking direction, and the method returns to the step 1000;

step 5000: the step 1000 to the step 4000 are repeated until Y-axis traversal walking in the walking area is completed.

The Second Embodiment

FIG. 3 is a schematic program of an obstacle-avoidance walking of a self-moving robot according to the second embodiment of the present invention. As shown in FIG. 3, it is also required in the second embodiment that a rectangular plane coordinate system is established with the horizontal direction as the X axis and the vertical direction as the Y axis, and the walking along the direction of the X axis or Y axis is set as a forward walking; otherwise, a reverse walking. Meanwhile, the coordinate of a point at which the robot runs into obstacle when walking forwardly along the Y axis is set as the coordinate of an upside obstacle point, and the coordinate of a point at which the self-moving robot runs into obstacle when walking reversely along the Y axis is set as the coordinate of a downside obstacle point. Similarly, a coordinate of a point at which the self-moving robot runs into obstacle when walking forwardly along the X axis is set as the coordinate of a right side obstacle point, and a coordinate of a point at which the self-moving robot runs into obstacle when walking reversely along the X axis is set as the coordinate of a left side obstacle point.

The self-moving robot stores the coordinates of the upside obstacle points and the downside obstacle points respectively, and among the upside obstacle points or the downside obstacle points, the points which have the same Y-axis coordinate are stored for one time with respect to only one thereof. Specifically, referring to FIG. 3, when the self-moving robot moves and reaches the point P, it detects the upside obstacle point P which has the coordinate (X_(O), Y_(P)). Since there is previous to the point P no upside recorded point having the same Y-axis coordinate as the point P, the point P is a valid upside obstacle point, and the coordinate of the point P is stored as an upside recorded point. Further, since all upside obstacle points in the walking area between the point P and the point A have the same Y-axis coordinate as the point P, these upside obstacle points in this area are invalid upside obstacle points, and the coordinates of them are not stored. Similarly, among the downside obstacle points in this area, only the coordinate (X_(Q), Y_(Q)) of the downside obstacle point Q is stored. When the self-moving robot walks forwardly along the Y axis and runs into obstacle at the point A, it compares the coordinate (X_(A), Y_(A)) of the point A with that of the stored upside recorded points. The point P is the only one upside recorded point that has been stored so far. Since the Y-axis coordinate Y_(A) of the point A is not equal to the Y-axis coordinate Y_(P) of the point P, the coordinate (X_(A), Y_(A)) of the upside obstacle point A is stored as the upside recorded point. Furthermore, since the coordinate Y_(A) is less than the coordinate Y_(P), the self-moving robot shifts for a displacement M1 along the X axis, and then determines whether the self-moving robot can continue to walk along the former walking direction prior to the shifting. Here, the former direction is the forward direction of the Y axis. If the determination result is positive, the self-moving robot continues to walk forwardly along the Y axis; and if the determination result is negative, the self-moving robot walks reversely along the Y axis. At this time, obviously, the self-moving robot cannot walk forwardly along the Y axis, and thus, the self-moving robot walks reversely along the Y axis, i.e., moving downward along the Y axis. In the walking area between the point A and the point B1, all the upside obstacle points have the same Y-axis coordinate as the point A, and thus, the coordinates of these upside obstacle points in this area are not stored. The self-moving robot detects obstacle when it moves and reaches the point B1, and also compares the coordinate of the point B1 with those of the previously stored upside recorded points. Since the Y-axis coordinates of the point P and the point A are larger than or equal to that of the point B1, the self-moving robot moves and reaches the point B after shifting from the point B1 for the displacement M1 along the X axis. At this time, at the point B, it is necessary for the self-moving robot to determine whether it can continue to move upward along the former Y-axis walking direction. Obviously, the self-moving robot can move upward along the previous Y-axis walking direction at this time, and thus continues to move and reaches the point C. When the self-moving robot moves and reaches the point C, it compares the Y axis coordinate of the point C with those of the previously stored points P and A. Obviously, the Y axis coordinate of the point A is less than that of the point C. While designating the point A as a turning point, the self-moving robot moves along the X axis from the point C to the point D which has the same X axis coordinate as the point A, and then walks along the Y axis. At this time, the recorded point A is deleted. Thereafter, the self-moving robot moves from the point D to the point E along the reciprocating “

”-shaped path, during which the self-moving robot does not store any coordinate point even when it detects obstacle. After the self-moving robot moves and reaches the point E (not including the time of reaching the point E), it resumes storing valid obstacle points. At this time, as doing at the point B described above, the self-moving robot has to determine whether it can continue to move downward along the former Y-axis walking direction. If the determination result is positive, the self-moving robot continues to move from the point E to the point G; and if the determination result is negative, the self-moving robot moves upward along the Y axis (not shown). Thereafter starting from the point G, the self-moving robot resumes the routine reciprocating “

”-shaped walking mode. As shown in FIG. 3, the walking path of the self-moving robot is: O→P→Q→A→B→C→D→N→E→G.

Compared with the first embodiment, the second embodiment has the following two differences. First, the concepts of “upside” and “downside” are defined with respect to the walking directions of the self-moving robot along the Y axis. When the self-moving robot walks forwardly along the Y axis, it is not necessary to store the coordinate of each of the obstacle points having the same Y axis coordinate, but just store the obstacle points having distinct Y-axis coordinates as the recorded points. During the movement process of the self-moving robot, it is only required to determine whether there is among the previously stored upside recorded points a recorded point which has a less Y axis coordinate than the current obstacle point. If the determination result is positive, the self-moving robot moves back to the X axis coordinate of this recorded point from the current obstacle point; and if the determination result is negative, the self-moving robot shifts from the current obstacle point for the displacement M1 along the X axis. Second, after the self-moving robot detects obstacle and shifts for the displacement M1, there is added the determination of whether the self-moving robot can continue to walk along the walking direction prior to the shifting. If the determination result is positive, the self-moving robot continues to walk along the walking direction prior to the shifting; and if the determination result is negative, the self-moving robot walks along a direction opposite to the walking direction prior to the shifting. In the present embodiment, due to the addition of such determination step, it is possible to further simplify the walking path and improve the working efficiency of the self-moving robot.

It should be noted that although in the present embodiment, the concepts of “upside” and “downside” are defined with respect to the walking directions of the self-moving robot along the Y axis, and the obstacle points having the same Y axis coordinate in the upside or downside obstacle points are stored for one time with respect to only one thereof in order to reduce data storage, if the coordinates of all these obstacle points are stored, the walking path shown in FIG. 3 can also be achieved. Further, in the present embodiment, in order to optimize the walking path, after detecting obstacle and then shifting for the displacement M1, the self-moving robot walks along the same walking direction as prior to the shifting preferentially. However, the obstacle-avoidance walking method in the present embodiment is not limited to this limiting condition. For example, with the removal of the limiting condition, the self-moving robot walks along the reciprocating “

”-shaped path all the time, and can achieve the walking path as shown in FIG. 2.

The Third Embodiment

FIG. 4 is a schematic program of an obstacle-avoidance walking of a self-moving robot according to the third embodiment of the present invention. As shown in FIG. 4, the present embodiment provides a further optimization based on the foregoing two embodiments. The self-moving robot stores the coordinate of the point A after it runs into obstacle at the point A, and then runs into obstacle again after it moves and reaches the point C. The Y-axis coordinate of the point A is less than that of the point C. According to the previous control method, the point A should be a turning point, and the self-moving robot should move along the X axis from the point C to the position which has the same X axis coordinate as the point A. However, the self-moving robot detects blockage of obstacle M. At this time, the coordinate of the turning point A is deleted, and the self-moving robot moves downward from the point C to the point B along the Y axis, and moves and reaches the point D after shifting from the point B for the displacement M1 along the X axis. Thereafter, starting from the point D, the self-moving robot resumes the routine reciprocating “

”-shaped walking mode. As shown in FIG. 4, the walking path of the self-moving robot is: A→B→C→B→D.

The third embodiment further adds the following step to improve the control methods provided in the first and second embodiments: in the walking process along the direction of the X or Y axis, the self-moving robot further performs determination and control when it is required to change direction according to the control methods but detects obstacle.

In the above three embodiments, the obstacle-avoidance methods of the self-moving robot walking only along the Y axis are described. Obviously, the above-mentioned methods are also applicable when the self-moving robot walks along the X axis. Furthermore, for sake of explanation of the walking path, the rectangular plane coordinate system is established with the horizontal direction as the X axis and the vertical direction as the Y axis. However, the present invention is not limited to the horizontal direction and the vertical direction, and other two directions such as an east-west direction and a south-north direction that are perpendicular to one another are also be applicable to establish the coordinate system.

In conclusion, the present invention provides an obstacle-avoidance walking method of a self-moving robot, in which in a walking area of the self-moving robot, a rectangular plane coordinate system is established with the horizontal direction as the X axis and the vertical direction as the Y axis, and the method specifically comprises the following steps:

step 100: the self-moving robot walks along the Y axis, when the self-moving robot walks forwardly along the Y axis and detects obstacle, it sets an obstacle point at the current position as an upside obstacle point and stores valid upside obstacle points as upside recorded points; when the self-moving robot walks reversely along the Y axis and detects obstacle, it sets an obstacle point at the current position as a downside obstacle point and stores valid downside obstacle points as downside recorded points;

step 200: according to storage sequence, the upside recorded points are classified into a current upside recorded point and previous upside recorded points, and the downside recorded points are classified into a current downside recorded point and previous downside recorded points;

step 300: if the current obstacle point is the upside obstacle point, it is determined whether there is before the current upside obstacle point a previous upside recorded point, the Y-axis coordinate of which is less than that of the current upside obstacle point; and if the current obstacle point is the downside obstacle point, it is determined whether there is before the current downside obstacle point a previous downside recorded point the Y-axis coordinate of which is larger than that of the current downside obstacle point;

step 400: if the determination result is positive, the previous upside recorded point or the previous downside recorded point is a turning point, the self-moving robot walks along the X axis from the current obstacle point toward the turning point to the X-axis coordinate of the turning point, deletes the coordinate of the turning point, and returns to the step 100 after completing traversal walking in an area between the turning point and the current obstacle point; and if the determination result is negative, the self-moving robot moves for a displacement M1 along the X axis;

step 500: the self-moving robot walks along a direction opposite to the former Y-axis walking direction, and returns to the step 100;

step 600: the step 100 to the step 500 are repeated until traversal walking in the walking area is completed.

The step 100 specifically further comprises:

if the Y-axis coordinate of the current upside obstacle point is different from that of each of the previous upside recorded points, the current upside obstacle point is the valid upside obstacle point; and if the Y-axis coordinate of the current downside obstacle point is different from that of each of the previous downside recorded points, the current downside obstacle point is the valid downside obstacle point.

Alternatively, the step 100 specifically further comprises:

each of the upside obstacle points is the valid upside obstacle point; and each of the downside obstacle points is the valid downside obstacle point.

The step 400 specifically further comprises: if the determination result is positive, difference values of the X-axis coordinates of all of the upside recorded points or the downside recorded points that satisfy the determination condition from the X-axis coordinate of the current obstacle point are compared, and the upside recorded point or the downside recorded point having the largest difference value is taken as the turning point.

The step 400 specifically further comprises: if the determination result is positive, the coordinates of all of the upside recorded points or the downside recorded points that satisfy the determination condition are deleted.

The step 400 specifically further comprises: if the self-moving robot detects obstacle again before reaching the X axis coordinate of the turning point, the coordinate of the turning point is deleted and the method proceeds to the step 500.

In the step 400, the self-moving robot performs traversal walking in the area between the turning point and the current obstacle point in the same walking mode as it completes traversal walking in the walking area in the step 600.

A step 410 is further comprised after the step 400: it is determined whether the self-moving robot can walk along the former Y-axis walking direction, if the determination result is positive, the self-moving robot walks along the former Y-axis walking direction and returns to the step 100; and if the determination result is negative, the method proceeds to the step 500.

The determining of whether the self-moving robot can walk along the former Y-axis walking direction in the step 400 specifically comprising:

the self-moving robot firstly walks along the former Y-axis walking direction, if the self-moving robot does not detect obstacle after walking for a certain distance, it is determined that the self-moving robot can walk along the former Y-axis walking direction; otherwise, it is determined that the self-moving robot cannot walk along the former Y-axis walking direction.

A side-looking sensor is provided on the side the self-moving robot, and the determining of whether the self-moving robot can walk along the former Y-axis walking direction in the step 400 specifically comprising: according to a feedback signal of the side-looking sensor, the self-moving robot determines whether it can walk along the former Y-axis walking direction.

As can be known from the comparison of FIG. 1 with FIGS. 2-4, the advantage of the present invention lies in that when the self-moving robot runs into obstacle during its walking process, it can perform an one-off avoidance action with respect to obstacle by the coordinate determination so as to complete the working in each area between the periphery of the obstacle and the boundaries of the walking area; whereas in the prior art, the self-moving robot has to walk around the obstacle while avoiding obstacle for many times during its working process. Thus, the present invention accurately determines obstacle position and provides a concise walking path, and thus greatly improves the working efficiency of the self-moving robot. 

1. An obstacle avoidance walking method of a self-moving robot, comprising: storing a coordinate of a first obstacle point and a coordinate of a second obstacle point, wherein, the coordinate of the first obstacle point and the coordinate of the second obstacle point are formed by detecting an obstacle by the self-moving robot when walking along a first direction; and performing a preset shuttle walking according to the coordinate of the first obstacle point and the coordinate of the second obstacle point.
 2. The obstacle avoidance walking method of the self-moving robot of claim 1, comprising: the first obstacle point is a detected obstacle point that a current walking distance along the first direction is less than a former walking distance along the first direction; and the second obstacle point is another detected obstacle point that a current walking distance along the first direction is larger than a former walking distance along the first direction.
 3. The obstacle avoidance walking method of the self-moving robot of claim 2, further comprising: determining a missing area according to the coordinate of the first obstacle point and the coordinate of the second obstacle point.
 4. The obstacle avoidance walking method of the self-moving robot of claim 3, the performing a preset shuttle walking according to the coordinate of the first obstacle point and the coordinate of the second obstacle point, comprising: after a traversing walk of a walking area along the first direction, performing a traversing walking to the missing area.
 5. The obstacle avoidance walking method of the self-moving robot of claim 4, the after a traversing walk of a walking area along the first direction, performing a traversing walking to the missing area, comprising: performing the traversing walking to the missing area starting from the coordinate of the second obstacle point.
 6. The obstacle avoidance walking method of the self-moving robot of claim 4, the after a traversing walk of a walking area along the first direction, performing a traversing walking to the missing area, comprising: determining a coordinate of a third obstacle point according to the coordinate of the first obstacle point and the coordinate of the second obstacle point; and performing the traversing walking to the missing area starting from the coordinate of the third obstacle point.
 7. The obstacle avoidance walking method of the self-moving robot of claim 3, the performing a preset shuttle walking according to the coordinate of the first obstacle point and the coordinate of the second obstacle point, comprising: after the coordinate of the second obstacle point is reached when a traversing walk of a walking area along the first direction, performing a traversing walking to the missing area.
 8. The obstacle avoidance walking method of the self-moving robot of claim 7, the after the coordinate of the second obstacle point is reached a traversing walk of a walking area along the first direction, performing a traversing walking to the missing area, comprising: performing the traversing walking to the missing area starting from the coordinate of the second obstacle point.
 9. The obstacle avoidance walking method of the self-moving robot of claim 7, the after the coordinate of the second obstacle point is reached, performing a traversing walking to the missing area, specifically comprising: determining a coordinate of a third obstacle point according to the coordinate of the first obstacle point and the coordinate of the second obstacle point; and performing the traversing walking to the missing area starting from the coordinate of the third obstacle point.
 10. The obstacle avoidance walking method of the self-moving robot of claim 3, the performing a preset shuttle walking according to the coordinate of the first obstacle point and the coordinate of the second obstacle point, comprising: determining a coordinate of a third obstacle point according to the coordinate of the first obstacle point and the coordinate of the second obstacle point; and performing the traversing walking to the missing area starting from the coordinate of the third obstacle point.
 11. The obstacle avoidance walking method of the self-moving robot of claim 2, the performing a preset shuttle walking according to the coordinate of the first obstacle point and the coordinate of the second obstacle point, comprising: determining a missing area according to the coordinate of the first obstacle point and the coordinate of the second obstacle point; and performing a traversing walking to the missing area.
 12. The obstacle avoidance walking method of the self-moving robot of claim 1, wherein, the traversing walking comprises: when an obstacle is detected along the first direction, rotating a first degree and walking a distance for M1; and when the distance for M1 is walked, rotating the first degree and walking along the first direction.
 13. The obstacle avoidance walking method of the self-moving robot of claim 12, wherein, the first degree comprises one of: 90 degree and −90 degree.
 14. An obstacle avoidance walking method of a self-moving robot, comprising: storing a coordinate of a first obstacle point and a coordinate of a second obstacle point, wherein, the coordinate of the first obstacle point and the coordinate of the second obstacle point are formed by detecting an obstacle by the self-moving robot when walking along a first direction; and performing a shuttle walking to a missing area. 